import request from '@/utils/request'

// 查询宠物推荐列表
export function listRecommand(query) {
  return request({
    url: '/pets/recommand/list',
    method: 'get',
    params: query
  })
}

// 查询宠物推荐详细
export function getRecommand(id) {
  return request({
    url: '/pets/recommand/' + id,
    method: 'get'
  })
}

// 新增宠物推荐
export function addRecommand(data) {
  return request({
    url: '/pets/recommand',
    method: 'post',
    data: data
  })
}

// 修改宠物推荐
export function updateRecommand(data) {
  return request({
    url: '/pets/recommand',
    method: 'put',
    data: data
  })
}

// 删除宠物推荐
export function delRecommand(id) {
  return request({
    url: '/pets/recommand/' + id,
    method: 'delete'
  })
}
